package com.zhipu.resetbalance.remotedata.systemapi;

import com.zhipu.resetbalance.mobile.ResultEntity;
import com.zhipu.resetbalance.mobile.temporaryClass.Activate;
import com.zhipu.resetbalance.mobile.temporaryClass.DevCode;
import com.zhipu.resetbalance.mobile.temporaryClass.VersionUpdate;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Headers;
import retrofit2.http.POST;

public interface SystemApiService {


    /**
     * 激活 （安卓屏调用）
     * @param Sign
     * @param Time
     * @param mActivate
     * @return
     */
    @POST("/g1/ibs/activate")
    Observable<ResultEntity<String>> activate(@Header("Sign") String Sign, @Header("Time") long Time, @Body Activate mActivate);


    /**
     * 获取设备序列号
     * @param Sign
     * @param Time
     * @param devCode
     * @return
     */
    @POST("/g1/h/blhi/getDeviceCode")
    Observable<ResultEntity<String>> DeviceCode(@Header("Sign") String Sign, @Header("Time") long Time, @Body DevCode devCode);



    /**
     * 更新软件
     * @return
     */
    @Headers({"Content-Type: application/json;charset=utf-8"})
    @GET("g1/apkst/balance/version")
    Observable<VersionUpdate> version();



}
